package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Glumac;

public interface GlumacService {

	@CommitAfter
	public abstract void addActor(Glumac glumac);
	
	@CommitAfter
	public void deleteActor(Glumac glumac);

	public abstract Collection<Glumac> getAll();

	public Glumac getActorById(int id);
	
	public Glumac getActorByName(String name);
	
}